package com.fit.pianosheetshop.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.pianosheetshop.interfaces.Workman;



public class WorkmansBean implements Workmans{
	private Map<String, Workman> workmans = new HashMap<String, Workman>();

	public Collection<Workman> retrieve() {
		return workmans.values();
	}

	public Workman save(Workman workman) {
		return workmans.put(workman.getName(), workman);
	}

	public Workman retrieveSingleWorkman(String name) {
		return workmans.get(name);
	}

}
